package com.huawei.appmarket.service.alarm.control;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.huawei.secure.android.common.intent.SafeIntent;

public class RepeatingTaskReceiver extends BroadcastReceiver {
    public static final String REPEATING_TASK_TYPE = "repeatingTaskType";

    public void onReceive(Context context, Intent intent) {
        int intExtra = new SafeIntent(intent).getIntExtra(REPEATING_TASK_TYPE, -1);
        Bundle bundle = new Bundle();
        bundle.putInt(RepeatingTaskManager.KEY_PRE_DOWNLOAD_START_TYPE, intExtra);
        RepeatingTaskManager.executeJobTasks(context, bundle, 10001);
    }
}
